package com.gzhryc.shared_device.oem.micro.queue.times;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import com.gzhryc.common.logging.Logger;
import com.gzhryc.shared_device.common.BusyThreadPool;
import com.gzhryc.shared_device.oem.micro.queue.work.AgentReferrerWalletConvertWMRunnable;
import com.gzhryc.shared_device.oem.micro.queue.work.AgentRelationWalletConvertWMRunnable;
import com.gzhryc.shared_device.oem.micro.queue.work.BXSCNShopOrderLeaseTimeoutRunnable;
import com.gzhryc.shared_device.oem.micro.queue.work.BXSCNShopOrderRevertTimeoutRunnable;
import com.gzhryc.shared_device.oem.micro.queue.work.UserWalletConvertWMRunnable;

public class Morning1CheckJob implements Job {

    static Logger log = Logger.getLogger(Morning1CheckJob.class);

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("凌晨1点定时任务执行");
        BusyThreadPool.self().execute(new BXSCNShopOrderRevertTimeoutRunnable());
        BusyThreadPool.self().execute(new BXSCNShopOrderLeaseTimeoutRunnable());
        BusyThreadPool.self().execute(new UserWalletConvertWMRunnable());
        BusyThreadPool.self().execute(new AgentRelationWalletConvertWMRunnable());
        BusyThreadPool.self().execute(new AgentReferrerWalletConvertWMRunnable());
    }
}
